const joi = require('joi')

const name = joi.string().min(0).max(10)
const email = joi.string().email()
const oldpassword = joi.string().pattern(/^[\S]{6,12}$/).required()
const newpassword = joi.string().pattern(/^[\S]{6,12}$/).required()

const id = joi.number().integer().min(1).required()

exports.employees_updatepwd_schema = {
    body: {
        oldpassword,
        newpassword
    }
}
exports.employees_id_schema = {
    params: {
        id
    }
}